﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLinePacking.Attributes;
using ZoneLinePacking.Models.Entity.StationResult;

namespace ZoneLinePacking.Models.StationResult.QOPStation {

    /// <summary>
    /// 补偿垫片装配工位
    /// </summary>
    /// <remarks>
    /// <para>StationCode：OP560</para>
    /// <para>IP：192.168.10.55</para>
    /// </remarks>
    [Index(nameof(QOP020StationResult) + "index_1", nameof(AbsScanCode), IsUnique = false)]
    public class QOP020StationResult : StationResultBase {

        private string _springCode;
        /// <summary>
        /// 弹簧码
        /// </summary>
        [DgColumnAttr("弹簧条码")]
        public string SpringCode {
            get { return _springCode; }
            set { SetProperty(ref _springCode, value); }
        }

        private float _shimValue;
        /// <summary>
        /// 垫片尺寸
        /// </summary>
        [DgColumnAttr("垫片尺寸")]
        public float ShimValue {
            get { return _shimValue; }
            set { SetProperty(ref _shimValue, value); }
        }

        private int _workChannel;
        /// <summary>
        /// 工作通道
        /// </summary>
        [DgColumnAttr("工作通道")]
        public int WorkChannel {
            get { return _workChannel; }
            set => SetProperty(ref _workChannel, value);
        }

        private float _airSpring;
        /// <summary>
        /// 气体反弹力
        /// </summary>
        [DgColumnAttr("气体反弹力")]
        public float AirSpring {
            get { return _airSpring; }
            set => SetProperty(ref _airSpring, value);
        }

        #region 批次码追溯

        private string _springBatchCode;
        /// <summary>
        /// 弹簧批次码
        /// </summary>
        [DgColumnAttr("弹簧批次码")]
        public string SpringBatchCode {
            get { return _springBatchCode; }
            set { SetProperty(ref _springBatchCode, value); }
        }

        private string _shim1_4;
        /// <summary>
        /// 1.4左右垫片批次码
        /// </summary>
        [DgColumnAttr("1.4左右垫片批次码")]
        public string Shim1_4 {
            get { return _shim1_4; }
            set => SetProperty(ref _shim1_4, value);
        }

        private string _shim2_8;
        /// <summary>
        /// 2.8左右垫片批次码
        /// </summary>
        [DgColumnAttr("2.8左右垫片批次码")]
        public string Shim2_8 {
            get { return _shim2_8; }
            set => SetProperty(ref _shim2_8, value);
        }

        private string _shim4_2;
        /// <summary>
        /// 4.2左右垫片批次码
        /// </summary>
        [DgColumnAttr("4.2左右垫片批次码")]
        public string Shim4_2 {
            get { return _shim4_2; }
            set => SetProperty(ref _shim4_2, value);
        }

        private string _shim5_6;
        /// <summary>
        /// 5.6左右垫片批次码
        /// </summary>
        [DgColumnAttr("5.6左右垫片批次码")]
        public string Shim5_6 {
            get { return _shim5_6; }
            set => SetProperty(ref _shim5_6, value);
        }

        #endregion


    }


}
